#include<stdio.h>
int main(){
    int num_1=10;
    int num_2=20;
    int num_3=30;
    int* ptr_1=&num_1;
    int* ptr_2=&num_2;
    int* ptr_3=&num_3;
    int* ptr_arr[3]={ptr_1,ptr_2,ptr_3};
    int i;
   while( (scanf("%d",&i))!=EOF){
    printf("%d\n",*ptr_arr[i-1]);
   }
    return 0;
}